package com.hw.service;

import com.github.pagehelper.PageInfo;
import com.hw.pojo.Message;

/**
 * @InterfaceName: MessageService
 * @Description: message业务处理
 * @Author: vie0134
 * @Date: 2020-12-11 09:44
 * @Version: 1.0
 **/
public interface MessageService {
    void addMessage(Message message);
    void updateMessage(Message message);
    void deleteMessage(Integer id);
    Message login(String username, String password);
    Message selectMessageByUsername(String username);
    Message selectMessageById(Integer id);
    PageInfo<Message> findMessage(int pageNum, int pageSize);
}
